package com.easondongh.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * CREATE TABLE `dbtest`.`tb_user`  (
 *   `id` bigint(20) NOT NULL,
 *   `user_id` bigint(20) NULL DEFAULT NULL,
 *   `order_time` datetime(0) NULL DEFAULT NULL,
 *   `product` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
 *   `money` double NULL DEFAULT NULL,
 *   PRIMARY KEY (`id`) USING BTREE
 * ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
 * @author donghao
 * @date 2022/9/6 20:50
 */
@TableName(value = "tb_user")
public class User {

    @TableId
    private Long id;

    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
